package com.example.demo.pojo.dto;

import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.URL;

@Getter
@Setter
@ToString
public class DeleteFileDTO {
    @NotBlank(message = "文件地址不能为空")
    @URL
    private String url;

    public DeleteFileDTO() {
    }

    public DeleteFileDTO(String url) {
        this.url = url;
    }
}
